package org.example.fastproject.web.sys.model;

import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 日志表
 * </p>
 *
 * @author 王海舟
 * @since 2023-01-20 15:38:29
 */
@Data
@TableName("sys_log")
@ApiModel(value = "SysLog对象", description = "日志表")
public class SysLog implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("日志id")
    private Long id;

    @ApiModelProperty("日志类型（0-正常，1-错误）")
    private Integer type;

    @ApiModelProperty("日志标题")
    private String title;

    @ApiModelProperty("请求ip")
    private String ip;

    @ApiModelProperty("请求url")
    private String url;

    @ApiModelProperty("执行方法")
    private String method;

    @ApiModelProperty("方法参数")
    private String params;

    @ApiModelProperty("运行时间")
    private Long execution;

    @ApiModelProperty("错误信息")
    private String exception;

    @ApiModelProperty("创建者id")
    private Long createUser;

    @ApiModelProperty("创建时间")
    @JsonFormat(shape =JsonFormat.Shape.STRING,pattern ="yyyy-MM-dd HH:mm:ss",timezone ="GMT+8")
    private Date createTime;


}
